package com.cyq.day16.game;

import java.util.Scanner;

public class Game {

    public void start() {
        Scanner sc=new Scanner(System.in);
        System.out.println("请选择你的职业：1.猎人2.盗贼3.士兵4.医生5.农民");
        int input=sc.nextInt();
        Hero h=new Hero();
        if (input==1){
             h=new Hunter();
        }else if (input==2){
             h=new Rouge();
        }else if (input==3){
             h=new Soldier();
        }else if (input==4){
             h=new Doctor();
        }else if (input==5){
             h=new Worker();
        }
        System.out.println("请输入英雄名字");
        h.heroName= sc.next();
        h.introduce();
        System.out.println("是否使用技能y/n");
        String inputSkill=sc.next();
        if ("y".equals(inputSkill)){
            h.skill(h);
            h.show();
        }
    }
}
